# -*- coding: utf-8 -*-
# @Time: 2021/8/16 14:44
# @File: meituan-001-1.py
# @DESC:
import re


class Solution:
    def my_re(self, str):
        if str == None:
            return "Wrong"
        pattern = '^[a-zA-Z][a-zA-Z]*[0-9]{1}[a-zA-Z0-9]*'
        match = re.match(pattern, str)
        print(len(str))
        print(match)
        if match is not None and match.span()[1]==len(str):
            return 'Accept'

        return 'Wrong'


# a = int(input())
solution = Solution()
# for i in range(a):
#     str = input()
#     print(solution.my_re(str))


print(solution.my_re('A6666'))
